<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use DB;
class dashboard extends Model{

    protected $table = 'users';
    public $timestamps = false;

    public function CountUsers(){
        return \DB::table($this->table)->count('id');
    }
    public function CountPrize(){
        return \DB::table('eat_every_day_prize')->count('id');
    }
    public function CountDay(){
        return \DB::table('eat_every_day')->count('id');
    }

}
